//
//  BaseRefreshData.swift
//  YMSwiftUI
//
//  Created by anscen on 2022/3/23.
//

import UIKit

struct BaseRefreshData{
    var page          :Int = 1
    var noMoreData    :Bool = false
    var refreshHeader :Bool = false
    var refreshFooter :Bool = false
    mutating func endRefresh(_ noMoreData :Bool){
        self.refreshFooter = false
        self.refreshHeader = false
        self.noMoreData = noMoreData
    }
    mutating func endFailure(_ error :String){
        self.refreshFooter = false
        self.refreshHeader = false
        self.noMoreData = false
    }
}
